﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace ClassLibrary1
{
    public class ApiDbContext
    {
        [Key]
        [Required]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }
        //图书名称
        [Required]
        public String? BookName { get; set; }

        //图书种类
        [Required]
        public String? BookTypes { get; set; }

        //图书价格
        [Required]
        public int Bookprices { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime Register { get; set; }
        //出版社
        [Required]
        public string? Publishing { get; set; }
    }
}
